package com.hz.userService.service;

import com.hz.userService.domain.Grade;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author li
* @description 针对表【grades(年级表)】的数据库操作Service
* @createDate 2023-09-23 17:13:26
*/
public interface GradeService extends IService<Grade> {
    /**
     * 添加年级
     * @param gradeName
     * @param classNumber
     * @param gradeYear
     * @return
     */
    Boolean addGrade(String gradeName,Integer classNumber,String gradeYear);

    /**
     * 编辑年级
     * @param id
     * @param gradeName
     * @param classNumber
     * @param gradeYear
     * @return
     */
    Boolean editGrade(Integer id,String gradeName,Integer classNumber,String gradeYear);

    /**
     * 删除年级
     * @param id
     * @return
     */
    Boolean deleteGrade(Integer id);

    /**
     * 获取详情
     * @param id
     * @return
     */
    Grade viewGrade(Integer id);
}
